package com.czxy.demo04;

/**
 * Created by hp on 2020/1/31.
 */
public class Test18 {
    public static void main(String[] args) {
        Car audi = new Audi("奥迪","白色",200.0);
        Car alto = new Alto("奥拓","黑色",100.0);
        double d = new RentalHouse().rent(audi,4);
        System.out.println("奥迪的4个月租金"+d);
        double d2 = new RentalHouse().rent(alto,3);
        System.out.println("奥拓的3个月租金"+d2);
    }
}
